#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>
#include<math.h>
#define err 1e-6
int main()
{
    double x, y;
    scanf("%lf,%lf", &x, &y);
    double distance = sqrt(pow((x - 2), 2) + pow((y - 2), 2));
    if (fabs(distance - 1) <= err)
        printf("On the circle\n");
    else
    {
        if (distance < 1)
            printf("In the circle\n");
        else
            printf("Outside the circle\n");
    }
    return 0;
}